package com.neusoft.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.neusoft.dao.booksDao;

@RequestMapping("/TestController")
@RestController
public class TestController {
	@Autowired
	private booksDao bd;
	
	@GetMapping("/test")
	public String test(){
		String str=null;
		str.substring(1);
		bd.insert(null);
		return "ok";
	}
	
}
